/*
 * ASTUtil.cpp
 *
 *  Created on: Nov 19, 2010
 *      Author: dhovemey
 */

#include "fe/ASTNode.h"
#include "fe/ASTUtil.h"

namespace ASTUtil {

unsigned getNumFields(ASTNode *clsOrModule)
{
	ASTNodeList vec;
	findChildren(clsOrModule, IsField(), vec);
	return unsigned(vec.size());
}

} // end namespace ASTUtil
